#include <iostream>
#include <string>
#include "src/server/others.h"
#include "src/server/redis_server.h"

int main(int argc,char *argv[]){
    if(argc<=2){
        std::cerr<<"argument nums too less"<<std::endl;
        return 0;
    }
    std::string ip(argv[1]),port_str(argv[2]);
    auto port= convert<std::uint16_t>(port_str);
    redis_server server(ip,port);
    server.run();
    return 0;
}
